import request from "@/js/util/request";
export const addAddressService = (address) => {
    return request.post("/addAddress", address)
}
export const findAllAddressService = () => {
    return request.get("/findAllAddress")
}
export const saveEditService = (address) => {
    return request.post("/updateAddressById", address)
}
export const setDefaultService = (addressId) => {
    let url = "/setDefaultById?addressId="+addressId
    return request.get(url)
}
export const deleteByIdService = (addressId) => {
    let url = "/deleteAddressById?addressId="+addressId
    return request.delete(url)
}
